#include "RoomAssigner.h"
#include <map>
#include <string>

int RoomAssigner::assignRoomNumber(const std::string& roomType) {
	static std::map<std::string, int> nextRoom = {
		{"大床房", 101},
		{"双床房", 201},
		{"商务套房", 301},
		{"标准间", 401}
	};
	
	if (nextRoom.count(roomType)) {
		return nextRoom[roomType]++;
	}
	return 999; // 未知房型
}
